package com.huilian.iotbox.admin.wap.dao;

import com.huilian.iotbox.data.po.CommodityProjectRelevance;
import com.huilian.iotbox.data.vo.CommodityProjectRelevanceVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author LinYinDong
 * @date 2023/5/16 16:52
 */
public interface CommodityProjectRelevanceDao {
    Integer insert(CommodityProjectRelevance cpr);

    /**
     * 根据套票套餐Id 查询游玩项目
     */
    List<CommodityProjectRelevanceVo> findCommodityProjectRelevanceByCommodityId(@Param("commodityId") Long commodityId);

    int update(CommodityProjectRelevance relevance);

    void delete(Integer id);
}
